import service from '@/api/http'
const position = {

    // 获取岗位
    getPosition(p) {
        return service.get('/position', {
            params: p
        })
    },

    // 新增
    addPosition(p) {
        return service.put('/position/add', p)
    },

    // 更新
    updatePosition(p) {
        return service.post('/position/update', p)
    },

    // 删除
    deletePosition(p) {
        return service.delete('/position/delete', {
            params: p
        })
    },

    // 获取部门
    getDepartment() {
        return service.get('/position/getDepartment')
    },

    // 获取查询项部门
    getDepartmentForQuery() {
        return service.get('/position/getDepartmentForQuery')
    }
}
export default position